class HealthTip {
  final String title;
  final String content;

  HealthTip({
    required this.title,
    required this.content,
  });

  factory HealthTip.fromJson(Map<String, dynamic> json) {
    return HealthTip(
      title: json['title'] ?? '',
      content: json['content'] ?? '',
    );
  }
}

class HealthTipResponse {
  final List<HealthTip> tips;

  HealthTipResponse({required this.tips});

  factory HealthTipResponse.fromJson(Map<String, dynamic> json) {
    final list = json['result']['list'] ?? [];
    return HealthTipResponse(
      tips: List<HealthTip>.from(list.map((item) => HealthTip.fromJson(item))),
    );
  }
}
